From 624016fee6117bb29c8a7bc4223e23952e9b6029 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 26 Jul 2005 20:42:18 +0000 Subject: [PATCH] Declare GetAncestor() and define GA_PARENT if missing (MSVC6). (#311633) 2005-07-26 Tor Lillqvist * gtk/gtkplug-win32.c: Declare GetAncestor() and define GA_PARENT if missing (MSVC6). (#311633) --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ gtk/gtkplug-win32.c | 7 +++++++ 4 files changed, 22 insertions(+) diff --git a/ChangeLog b/ChangeLog index cd17bd0940..5403c10b90 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-07-26 Tor Lillqvist + + * gtk/gtkplug-win32.c: Declare GetAncestor() and define GA_PARENT + if missing (MSVC6). (#311633) + 2005-07-26 Federico Mena Quintero * perf/: New directory with the start of a framework for testing diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index cd17bd0940..5403c10b90 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2005-07-26 Tor Lillqvist + + * gtk/gtkplug-win32.c: Declare GetAncestor() and define GA_PARENT + if missing (MSVC6). (#311633) + 2005-07-26 Federico Mena Quintero * perf/: New directory with the start of a framework for testing diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index cd17bd0940..5403c10b90 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2005-07-26 Tor Lillqvist + + * gtk/gtkplug-win32.c: Declare GetAncestor() and define GA_PARENT + if missing (MSVC6). (#311633) + 2005-07-26 Federico Mena Quintero * perf/: New directory with the start of a framework for testing diff --git a/gtk/gtkplug-win32.c b/gtk/gtkplug-win32.c index 329a7d8b76..bcbc5093a5 100644 --- a/gtk/gtkplug-win32.c +++ b/gtk/gtkplug-win32.c @@ -34,6 +34,13 @@ #include "gtkwin32embed.h" +#if defined(_MSC_VER) && (WINVER < 0x0500) +#ifndef GA_PARENT +#define GA_PARENT 1 +#endif +WINUSERAPI HWND WINAPI GetAncestor(HWND,UINT); +#endif + GdkNativeWindow _gtk_plug_windowing_get_id (GtkPlug *plug) { -- 2.30.2